package com.baymax.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 地址实体
 *
 * @author baymax
 * @date 2023-03-17 14:39
 */
@Data
@TableName(value = "address")
public class Address {

    /**
     * 用户id
     */
    @TableId(value = "address_id", type = IdType.AUTO)
    private Integer addressId;

    /**
     * 省份(带“省”字)
     */
    @TableField(value = "province")
    private String province;

    /**
     * 城市(带“市”字)
     */
    @TableField(value = "city")
    private String city;

    /**
     * 区或县(带“区”或“县”字)
     */
    @TableField(value = "district")
    private String district;

    /**
     * 详细地址
     */
    @TableField(value = "detail_address")
    private String detailAddress;

    /**
     * 省市区对应的key值
     */
    @TableField(value = "address_value")
    private String addressValue;

    /**
     * 是否删除(0: 否 1: 是)
     */
    @TableField(value = "is_deleted")
    private Boolean isDeleted;

}
